package com.mgg.common.exception;

/**
 * service层异常
 * @Author: lijun
 * @Date: 2018/9/11 10:49
 */
public class ServiceException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private String code;

    public ServiceException() {

    }

    public ServiceException(String code, String message){
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}
